<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
ini_set('date.timezone', 'Asia/Bangkok');

define('ROOT_PATH', getcwd());
define('CATEGORY_ICON_PATH', ROOT_PATH . '/upload/category/icon');
define('CATEGORY_BANNER_PATH', ROOT_PATH . '/upload/category/banner');


defined('YII_DEBUG') or define('YII_DEBUG',true);
define('ROOT_PATH', dirname(__FILE__));
define('FRAMEWORK_PATH', dirname(__FILE__) . '/framework');
require_once(ROOT_PATH . '/lib/function.php');
// include Yii bootstrap file
require_once(FRAMEWORK_PATH . '/yii.php');